package com.dmwork.service.work.feign;


import com.dmwork.common.base.result.R;
import com.dmwork.service.base.model.VideoListVo;
import com.dmwork.service.work.feign.impl.VodVideoFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Service
@FeignClient(value = "service-vod-center", fallback = VodVideoFeignServiceFallback.class)
public interface VodVideoFeignService {

    @DeleteMapping("/front/dm_work/vod/me/remove/{videoSourceId}")
    R removeVideo(@PathVariable("videoSourceId") String videoSourceId);

    @DeleteMapping("/front/dm_work/vod/me/remove")
    R removeVideoByIdList(@RequestBody VideoListVo videoListVo);

}
